package cn.itcast.Service;

import cn.itcast.dao.DepartmentDao;
import cn.itcast.domain.Department;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentService {
    @Autowired
    DepartmentDao departmentDao;

    public List<Department> getDepts(){


        return  departmentDao.selectByExample(null);

    }
}
